package game.adm.entity;

import game.adm.dao.BetDAO;
import game.adm.dao.dto.BetDTO;
import game.adm.dao.factory.BetFactory;
import game.adm.struts.form.BetForm;

import java.util.List;

import projectx.core.base.ProjectXSystemException;
import projectx.core.base.ProjectXUserException;

public class BetEntityManager {
	public static List<BetDTO> list(BetForm betForm) throws ProjectXSystemException,ProjectXUserException {
		BetFactory factory = BetFactory.getFactory();
		BetDAO dao = factory.getBetDAO();
		return dao.list(betForm);
	}

	public static BetDTO getBetByID(String id)
			throws ProjectXSystemException, ProjectXUserException {
		BetFactory factory = BetFactory.getFactory();
		BetDAO dao = factory.getBetDAO();
		return dao.getBetByID(id);
	}
}
